/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package digitaldreamers.games.papermonsters.clients.gameclient.gameui;

import digitaldreamers.libraries.games.clients.networkmanagement.concrete.ConnectionHandler;
import digitaldreamers.libraries.games.clients.gameclient.gameui.implementation.WindowsGame;
import java.awt.event.WindowEvent;

/**
 *
 * @author Dao Le
 */
public class PaperMonsters extends WindowsGame {
    
    private ConnectionHandler m_ConnectionHandler = null;
    
    public PaperMonsters(PaperMonstersScreenManager screenManager) {
        super(DEFAULT_WIDTH, DEFAULT_HEIGHT, screenManager);
        m_ConnectionHandler = new ConnectionHandler();
    }

    public ConnectionHandler getConnectionHandler() {
        return m_ConnectionHandler;
    }
    
    @Override
    public void windowOpened(WindowEvent we) {
        
    }

    @Override
    public void windowClosing(WindowEvent we) {
        exit();
    }

    @Override
    public void windowClosed(WindowEvent we) {
        
    }

    @Override
    public void windowIconified(WindowEvent we) {
        
    }

    @Override
    public void windowDeiconified(WindowEvent we) {
        
    }

    @Override
    public void windowActivated(WindowEvent we) {
        
    }

    @Override
    public void windowDeactivated(WindowEvent we) {
        
    }

    @Override
    public void exit() {
        System.exit(0);
    }
    
    public static void main(String[] arr_strArgs) {
        PaperMonstersScreenManager screenManager = new PaperMonstersScreenManager();
        PaperMonsters gameInstance = new PaperMonsters(screenManager);
        gameInstance.start();
    }
}
